{extend name="common/layout"}
<!--注意，使用layout模板继承模式，内容须写在任意[block]标签对之间，否则内容不会被渲染-->

{block name="header"}
{include file="common/header"}
{/block}

{block name="style"}
<!--__style__-->
{/block}

{block name="main"}
{include file="common/navi"}
<div class="body">
    <div class="main-container">
        <!--文章列表:按栏目(示例)-->
    <div class="breadcrumb">
        当前位置：<a href="@site_home@">首页</a>
        {channel@parents}
        &gt;<a>{$channel.name}</a>
        {/channel@parents}
    </div>
    <div class="list">
        {content@list}
        <dl class="list-item">
            <dd class="title">
                <span class="left">
                    <a target="_blank" href="{$content.url}">{$content.title}</a>
                    {if $content.is_top==1}
                    <b style="color: red;">[置顶]</b>
                    {/if}
                    {if $content.is_hot==1}
                    <b style="color: red;">[热门]</b>
                    {/if}
                </span>
                <span class="date">{$content.date}</span>
                <!-- <span class="date">{$content.yy}年{$content.mm}月{$content.dd}日</span> -->
            </dd>
            <dt class="info">
                {$content.description}
            </dt>
        </dl>
        {/content@list}
    </div>
    <p>如当页面前环境变量为：</p>
    {show@vars}
    </div>
</div>
{/block}

{block name="footer"}
{include file="common/footer"}
{/block}

{block name="script"}
<!--__script__-->
{/block}